<!Doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">	
	<link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
	<title>分析师</title>
	<link rel="stylesheet" href="{{URL::asset('mobile/css/public.css') }}"/>
	<link rel="stylesheet" href="{{URL::asset('mobile/css/active.css') }}"/>
	<link rel="stylesheet" href="{{URL::asset('mobile/css/swiper-3.4.2.min.css')}}" />
	<link rel="stylesheet" href="{{URL::asset('mobile/css/pagination.css')}}" />
	<script src="{{URL::asset('mobile/js/jquery.min.js') }}"></script>
	<script src="{{URL::asset('mobile/js/swiper-3.4.2.jquery.min.js') }}"></script>
	<script src="{{URL::asset('mobile/js/public.js') }}"></script>
	<script src="{{URL::asset('mobile/js/active.js') }}"></script>
	<script type="text/javascript" src="http://cdn.webfont.youziku.com/wwwroot/js/wf/youziku.api.min.js"></script>
	<script type="text/javascript">
		$youziku.load(".font", "e842666c895c4ced9a8572f5c5960be3", "PingFangSC_R");
		$youziku.load(".font_one", "3457a57b538e4214b883cfa3e984c251", "PingFangSCM");
		$youziku.load("#jiangjin", "3457a57b538e4214b883cfa3e984c251", "PingFangSCB");
		$youziku.load(".countdown", "3457a57b538e4214b883cfa3e984c251", "PingFangSCB");
		$youziku.draw();
	</script>
</head>
<body>
	<div class="l_btn_tab">
			<!--tab导航-->
			<div class="l_box_nav">
				<ul>
					<li onclick='window.location.href="{{ url("bdlists") }}"'><a href="javascript:;" target="_blank">策略大师榜</a></li>
					<li class="cur"><a href="javascript:;" target="_blank">明日之星榜</a></li>
				</ul>
			</div>
			<!--图片-->
			<section>
				<img src="{{URL::asset('mobile/image/start1.jpg')}}" alt="" />
			</section>
			<!--奖金池-->
			<section>
				<ul>
					<li><a href='{{url("/competition")}}'>交易奖项</a></li>
					<li class="line"></li>
					<li><a href='{{url("/tournament")}}'>赛事规则</a></li>
					<li class="line"></li>
					<li><a href=''>pk大师</a></li>
					<li class="line"></li>
					<li><a href=''>邀请好友</a></li>
				</ul>
				<div>本周奖金池¥<spn id="jiangjin">10000.00</spn></div>
				<div>已参与人数<span>{{$allnum}}</span>人</div>
				<div>
					<p>(每人每周不少于<span>10</span>单，周盈不少于<span>100</span>点,方可领取奖金)</p>
					<!-- <p>&nbsp;&nbsp;周胜率不得少于<span>60</span>%,方可领取奖金)</p> -->
				</div>
			</section>
			<!--周排名-->
			<section>
				<div class="swiper-container">
			        <div class="swiper-wrapper" style="left: -{{($ingindex-1)*3.5+($ingindex-1)*0.875}}rem;">
			            @foreach($activelist as $akey=>$aval)
			            <div class="swiper-slide @if($aval['active_status'] == 1) ing @elseif($aval['active_status'] == 2) end @else noStart @endif" name="weekRank">			            	
			            	@if($aval['active_status'] == 2)
				            	第{{$akey+1}}周
				            	<div onclick="showWeekRank('{{$aval['start_time']}}','{{$aval['end_time']}}')">查看排名</div>
			            	@elseif($aval['active_status'] == 1)
				            	进行中
				            	<div>第{{$akey+1}}周</div>
				            @else
				            	未开始
			            		<div>第{{$akey+1}}周</div>
			            	@endif
			        	</div>
			        	@endforeach
			    </div>
			</section>
			<!--倒计时-->
			<section>
				<i></i>
				<div class="countdown">
					<script>
	                    $(function(){
	                    	timer = setInterval("daojishi()", 1000);
	                    })
	                </script>
                </div>
			</section>
			<!--搜索-->
			<section>
				<!--搜索框-->
				<div class="search">
					<div>
						<i></i>
						<input type="text" placeholder="输入昵称" id="searchname" value="" onkeyup="gotopage(0,1,'');" style="color: #30353c"/>
					</div>
					<span id="cancel_btn">取消</span>
				</div>
				<!--榜单列表-->
				<div class="main">
					<div class="list">
					    <ul class="list_title">
					        <li>排名</li>
					        <li>选手</li>
					        <li>本周策略</li>
					        <li>胜率</li>
					        <li>本周盈利</li>
					        <!--<li>总盈利</li>-->
					    </ul>
					</div>
					<div class="list_main">
						<ul>
							<!--排行榜内容部分-->
						</ul>
					</div>
				</div>
			</section>
	</div>
	<div style="height:3rem"></div>
@include('mobile.footer')
<style>
	/*底部行情应用样式*/
	footer ul li:nth-child(2) a {
		color: #3B9CE0;
	}
	footer ul li:nth-child(2) a i {
	  background: url("{{URL::asset('mobile/image/fxs_icond.png')}}") no-repeat center / cover;
	}
</style>
<script>
	var endtime   = '{{ $end_time   }}';
    var starttime = '{{ $start_time }}';
    var gotoactive= '{{ url("/active") }}';
    //排行榜
    var gamerank  = '{{ url("/gameranking") }}';
    //周榜
    var weekrank = '{{ url("/weekrank") }}';
    //比赛排名详情
    var rankdetail = '{{ url("/rankdetail") }}';
</script>
